﻿Public Class GiaoVienBUS
    Public Function LayDanhSachGiaoVien() As List(Of GiaoVienDTO)
        Dim gvDAO As New GiaoVienDAO
        Return gvDAO.LayDanhSachGiaoVien()
    End Function

    Public Function ThemGiaoVien(ByVal cn As GiaoVienDTO) As Integer
        Dim gvDAO As New GiaoVienDAO()
        Return gvDAO.ThemGiaoVien(cn)
    End Function

    Public Function XoaGiaoVien(ByVal gv As GiaoVienDTO) As Integer
        Dim gvDAO As New GiaoVienDAO
        Return gvDAO.XoaGiaoVien(gv)
    End Function

    Public Function SuaGiaoVien(ByVal gv As GiaoVienDTO) As Integer
        Dim gvDAO As New GiaoVienDAO
        Return gvDAO.SuaGiaoVien(gv)
    End Function

    Public Function TraCuuGiaoVien(ByVal gv As GiaoVienDTO) As List(Of GiaoVienDTO)
        Dim gvDAO As New GiaoVienDAO()
        Return gvDAO.TraCuuGiaoVien(gv)
    End Function
End Class
